
from time import sleep
from page.base_page import BasePage
class Tags(BasePage):
    def ele_attri_driver(self,driver):
        self.driver=driver
    def ele_commun(self):
        #进入社区
        self.driver.tap([(325,1850),(325,1850)],500)
        sleep(4)
    def ele_remain(self):
        #进入热门主厨
        self.driver.tap([(120,700),(120,700)],500)
        sleep(8)
    def ele_tags(self):
        #查看粉丝页
        self.driver.tap([(150,550),(150,550)],500)
        sleep(5)
    def ele_down(self):
        self.driver.swipe(500,990,500,100,500)

    def tags_all(self):
        self.ele_commun()
        self.ele_remain()
        self.ele_tags()
        self.ele_down()